import { Request } from '@/utils/request';

const url = {
    searchPaper: "/search/paper",
    filterPaper: "/search/filter",
    searchAuthor: "/search/author"
};

export const search = {
    // 论文检索
    searchPaper: function (params: any) {
        return Request.axiosInstance({
            url: url.searchPaper,
            method: 'get',
            params: params
        })
    },
    // 论文筛选
    filterPaper: function (params: any) {
        return Request.axiosInstance({
            url: url.filterPaper,
            method: 'get',
            params: params
        })
    },
    // 作者检索
    searchAuthor: function (params: any) {
        return Request.axiosInstance({
            url: url.searchAuthor,
            method: 'get',
            params: params
        })
    },
}